{{include file="header.html"}}
{{include file="menu.html"}}
	
    <!-- 轮播 -->
    <div class="container">
    	<div class="box">
    		<div class="news">
    			<div class="toptitle"><span>素拓活动<i>Quality activities</i></span><a href="index.php?app=quality&act=activities"  target="_blank">更多》</a></div>
    			<div class="news_left">
    				<div id="slideBox" class="slideBox">
				        <div class="hd">
				          	<ul><li class="on"></li><li></li><li></li><li></li><li></li></ul>
				        </div>
				        <div class="bd">
				            <ul>	
				            	{{if $activities_s}}
				            		{{foreach item=val from=$activities_s}}
						                <li style="display: list-item;">
						                	<a href="index.php?app=quality&act=detail&id={{$val.id}}" class="a2" target="_blank">
						                		<img src="{{$val.image|photo:520:300:true}}">
						                	</a>
						                </li>
					                {{/foreach}}
				                {{/if}}
				            </ul>
				        </div>
				        <a class="prev" href="javascript:void(0)"></a>
				        <a class="next" href="javascript:void(0)"></a>
				        <script type="text/javascript">
				            jQuery(".slideBox").slide({mainCell:".bd ul",autoPlay:true});
				        </script>
				    </div>
    			</div>
    			
			    <div class="bo_list">
					<div class="text-scroll">
						<div class="hd">
							<ul></ul>
						</div>
						<div class="li">
							<ul>
								{{if $activities_b}}
									{{foreach from=$activities_b item=val}}
										<li><a href="index.php?app=quality&act=detail&id={{$val.id}}" target="_blank">{{$val.title}}</a><span>{{$val.params.time|date_format:"Y-m-d"}}</span></li>
									{{/foreach}}
								{{/if}}
							</ul>
						</div>
					</div>	
					<script type="text/javascript">
						jQuery(".text-scroll").slide({titCell:".hd ul",mainCell:".li ul",autoPage:true,effect:"top",autoPlay:true,vis:10});
					</script>	
				</div>
				<div class="clear"></div>
    		</div>
    	</div>
    	<div class="box">
			<div class="bo_list inform">
				<div class="toptitle"><span>公告要闻<i>Announcement and Information</i></span><a href="index.php?app=quality&act=information" target="_blank">更多》</a></div>
				<div class="li">
					<ul>
						{{if $information}}
							{{foreach from=$information item=val key=key}}
								<li><i>{{$key+1}}</i><a href="index.php?app=quality&act=detail&id={{$val.id}}" target="_blank">{{$val.title}}</a><span>{{$val.params.time|date_format:"Y-m-d"}}</span></li>
							{{/foreach}}
						{{/if}}
					</ul>
				</div>
			</div>
			<div class="bo_list team">
				<div class="toptitle"><span>素拓部门<i>Quality section</i></span><a href="index.php?app=quality&act=section"  target="_blank">更多》</a></div>
				<div class="li">
				<ul>
					{{if $section}}
						{{foreach from=$section item=val key=key}}
							<li><i>{{$key+1}}</i><a href="index.php?app=quality&act=detail&id={{$val.id}}" target="_blank">{{$val.title}}</a><span>{{$val.params.time|date_format:"Y-m-d"}}</span></li>
						{{/foreach}}
					{{/if}}
				</ul>
				</div>
			</div>
    		<div class="clear"></div>
    	</div>
    	<div class="box">
    		<div class="toptitle"><span>部门照片<i>Section photo</i></span><a href="index.php?app=quality&act=section"  target="_blank">更多》</a></div>
    		<div class="result">
    			<div class="picMarquee-left">
					<div class="hd">
						<a class="next"></a>
						<a class="prev"></a>
					</div>
					<div class="bd">
						<ul class="picList">
						{{if $photo}}
							{{foreach from=$photo item=val key=key}}
								<li>
									<a href="index.php?app=quality&act=detail&id={{$val.id}}" target="_blank">
										<div class="pic">
											<div class="imgbox">
												<img src="{{$val.image|photo:150:100:true}}" />
											</div>
										</div>
										<div class="item">{{$val.title}}</div>
									</a>
								</li>
							{{/foreach}}
						{{/if}}
						</ul>
					</div>
				</div>
				<script type="text/javascript">
				var win = $(window).width();
				if(win>800){
					jQuery(".picMarquee-left").slide({mainCell:".bd ul",autoPlay:true,effect:"leftMarquee",vis:8,interTime:50});
				}
				</script>
    		</div>
    		<script type="text/javascript">
    			$(function(){
					function resize(){
						var win = $(window).outerWidth();
						if(win<800){
							var fxitem_width = $(".result .bd").width();
							var li_width = $(".result .bd li").width()+16;
							var n=Math.floor((fxitem_width /li_width));
							var margin = fxitem_width - (n*li_width);
							margin = margin/2;
							$(".result .bd ul").css("margin-left",margin);
						}else{
							$(".result .bd ul").css("margin-left",0);
						}
					}
					$(window).resize(function(){
						resize();
					});
					resize();
				});

    		</script>
    	</div>
		<!-- <div class="box">
    		<div class="toptitle"><span>服务平台<i>Service Platform</i></span></div>
    		<div class="service_platform">
	    		<div class="linkpic">
					<a href="index.php?app=Login&act=teacher" target="_blank"><img src="{{$smarty.const.__APP__}}/images/link4.jpg" alt=""></a>
					<a href="index.php?app=Login&act=student" target="_blank"><img src="{{$smarty.const.__APP__}}/images/link4.jpg" alt=""></a>
					{{if $url}}
					{{foreach item=val from=$url.params.url}}
					<a href="{{$val.title2}}" target="_blank"><img src="{{$val.image|photo}}" alt=""></a>
					{{/foreach}}
					{{/if}}
					<div class="clear"></div>
				</div>
			</div>
    	</div> -->
	    <!-- <div class="box box_link">
    		<div class="toptitle"><span>友情链接<i>Friendly Link</i></span></div>
    		<div class="linkbox">
				<div class="links">
					<span>友情链接</span>
					<ul>
						{{if $url}}
						{{foreach item=val from=$url.params.select}}
						<li><a href="{{$val.value}}" target="_blank">{{$val.key}}</a></li>
						{{/foreach}}
						{{/if}}
					</ul>
				</div>
				<div class="links">
					<span>执政部门</span>
					<ul>
						{{if $url}}
						{{foreach item=val from=$url.params.section}}
						<li><a href="{{$val.value}}" target="_blank">{{$val.key}}</a></li>
						{{/foreach}}
						{{/if}}
					</ul>
				</div>
				<div class="clear"></div>
				<script type="text/javascript">
				$('.links').click(function(){
					$('.links').not(this).find('ul').slideUp();
					$(this).find('ul').slideToggle();
					var e=arguments.callee.caller.arguments[0]||event;
					if(e.stopPropagation) {
					    e.stopPropagation();
					} else {
						window.event.cancelBubble = true; 
					}
				})
				$('body').click(function(){
					$('.links ul').slideUp();
				})
				</script>
			</div>
    	</div> -->
    </div>
{{include file="footer.html"}}